import Api from '../api'

// 用户
class TodoApi extends Api {
    constructor() {
        super()
        this.scope =
            'https://www.fastmock.site/mock/5c8bca0fa54d0c0c2264fc0098b15dcf/ccj'
    }

    resolvePath(path) {
        return this.scope + path
    }
    // 获取本单位审核列表
    getUnitAuditList(data) {
        const path = this.resolvePath('/audit-unit')
        return this.post(path, data)
    }
    // 获取下级上报审核列表
    getReportList(data) {
        const path = this.resolvePath('/report')
        return this.post(path, data)
    }
    // 获取巡检任务列表
    getTasks(data) {
        const path = this.resolvePath('/inspectionTask/list')
        return this.post(path, data)
    }
}

export default TodoApi
